package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * 
* @ClassName: momentsInteraction 
* @Description: 朋友圈点赞和评论定义表
* @author eason
* @date 2016-11-10 14:29:16
*
 */
@Entity
@Table(name = "tb_xa_momentsinteraction")
@ApiModel(value="朋友圈点赞和评论定义表")
public class MomentsInteraction extends BaseEntity{

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="朋友圈id,朋友圈id")
	private String momentId;
	@ApiModelProperty(value="类型:1：点赞、2：评论")
	private Integer type;
	@ApiModelProperty(value="用户Id,用户Id")
	private Long userId;
	@ApiModelProperty(value="回复人id,回复人id")
	private Long replyToUserId;
	@ApiModelProperty(value="回复内容,回复内容，点赞时为空")
	private String content;


	public void setType(Integer type){
		this.type=type;
	}
	
	@Column(nullable=true,length=50)
	public Integer getType(){
		return type;
	}
	public void setUserId(Long userId){
		this.userId=userId;
	}
	
	@Column(nullable=true,length=50)
	public Long getUserId(){
		return userId;
	}
	public void setReplyToUserId(Long replyToUserId){
		this.replyToUserId=replyToUserId;
	}
	
	@Column(nullable=true,length=50)
	public Long getReplyToUserId(){
		return replyToUserId;
	}
	public void setContent(String content){
		this.content=content;
	}
	
	@Column(nullable=true,length=2000,columnDefinition="MEDIUMTEXT")
	public String getContent(){
		return content;
	}
	public void setMomentId(String momentId){
		this.momentId=momentId;
	}
	
	@Column(nullable=true,length=50)
	public String getMomentId(){
		return momentId;
	}
		

}
